package UserDatabase;
/**
 * @describe 存储用户信息
 * 
 */
import java.util.Random;

public class User {
	private int id,water,electricity,gas,property,warm,house;//编号，水，电，气，物业，取暖，房费
	private String name,sex,age,password,uno,hno;//姓名，性别，年龄，密码,单元号，房间号
	private Object type;//身份
	public User(String name,Object type,String sex,String age,String uno,String hno,String password) {
		super();
		Random r = new Random();
		this.id = r.nextInt(100000);
		this.uno = uno;
		this.hno = hno;
		this.water = 0;
		this.electricity = 0;
		this.gas = 0;
		this.property = 0;
		this.warm = 0;
		this.house = 0;
		this.name = name;
		this.sex = sex;
		this.age = age;
		this.password = password;
		this.type = type;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUno() {
		return uno;
	}
	public void setUno(String uno) {
		this.uno = uno;
	}
	public String getHno() {
		return hno;
	}
	public void setHno(String hno) {
		this.hno = hno;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getAge() {
		return age;
	}
	public void setAge(String age) {
		this.age = age;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Object getType() {
		return type;
	}
	public void setType(Object type) {
		this.type = type;
	}
	public int getWater() {
		return water;
	}
	public void setWater(int water) {
		this.water = water;
	}
	public int getElectricity() {
		return electricity;
	}
	public void setElectricity(int electricity) {
		this.electricity = electricity;
	}
	public int getGas() {
		return gas;
	}
	public void setGas(int gas) {
		this.gas = gas;
	}
	public int getProperty() {
		return property;
	}
	public void setProperty(int property) {
		this.property = property;
	}
	public int getWarm() {
		return warm;
	}
	public void setWarm(int warm) {
		this.warm = warm;
	}
	public int getHouse() {
		return house;
	}
	public void setHouse(int house) {
		this.house = house;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", water=" + water + ", electricity=" + electricity + ", gas=" + gas + ", property="
				+ property + ", warm=" + warm + ", house=" + house + ", name=" + name + ", sex=" + sex + ", age=" + age
				+ ", password=" + password + ", uno=" + uno + ", hno=" + hno + ", type=" + type + "]";
	}
	
	
	
	
}
